<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use DB;
use Session;
use App\Http\Requests;
use App\Http\Controllers\Controller;
use Gregwar\Captcha\CaptchaBuilder;


class XqController extends Controller
{
	 //详情页面
    public function getIndex($id)
    {
    	$goods=DB::table('goods')->where('id',$id)->first();

    	// dd($goods);
    	// 显示模板
    	return view('xiangqing.xiangqing',['goods'=>$goods]);
    }

}